home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
cenvid
/
isitfri.bat
< prev
next >
Wrap
DOS Batch File
|
1995-03-28
|
752b
|
14 lines
@echo OFF
REM **************************************************************************
REM *** IsItFri.bat - Use CEnviD from a batch file to determine if today is ***
REM *** ver.1 Friday. CEnviD is called from one line and sets ***
REM *** ERRORLEVEL (by its return value) to 1 if it is ***
REM *** Friday and 0 if it is not Friday. The batch file ***
REM *** may then switch actions based on that ERROLEVEL ***
REM **************************************************************************
CEnviD "DateString = ctime(time()) return( strstr(DateString,"Fri") ? 1 : 0 )"
if ErrorLevel 1 ECHO WHOOPEE! It Is Friday
if not ErrorLevel 1 ECHO Dang! It is Not Friday